package com.sg.dto.integration.app;


import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc MidPlanTargetCycleMenuDto
 * @使用场景
 */
@Data
public class MidPlanTargetCycleMenuDto extends BaseDto implements Serializable {

    /**
     * 被评对象目标周期ID:
     */
    @ApiModelProperty("被评对象目标周期ID")
    private String evaObjTargetCycleId;

    /**
     * 被评对象内容表主键ID:
     */
    @ApiModelProperty("被评对象内容表主键ID")
    private String evaObjEntityId;

    /**
     * 被评对象内容表类型编码:
     */
    @ApiModelProperty("被评对象内容表类型编码")
    private String evaObjTableTypeCode;

    /**
     * 被评对象类型编码:
     */
    @ApiModelProperty("被评对象类型编码")
    private String evaObjTypeCode;

    /**
     * 树类型编码:
     */
    @ApiModelProperty("树类型编码")
    private String treeTypeCode;

    /**
     * 冗余评价对象ID:
     */
    @ApiModelProperty("冗余评价对象ID")
    private String evaluationObjectId;

    /**
     * 目标周期来自内容ID:
     */
    @ApiModelProperty("目标周期来自内容ID")
    private String targetCycleContentId;

    /**
     * 周期ID:
     */
    @ApiModelProperty("周期ID")
    private String cycleId;

    /**
     * 是否父周期:
     */
    @ApiModelProperty("是否父周期")
    private String isParentCycle;

    /**
     * 是否子周期:
     */
    @ApiModelProperty("是否子周期")
    private String isSubCycle;

    /**
     * 是否中期:
     */
    @ApiModelProperty("是否中期")
    private String isMetaphase;

    /**
     * 周期名称:
     */
    @ApiModelProperty("周期名称")
    private String cycleStandardName;

    /**
     * 目标周期简称:
     */
    @ApiModelProperty("目标周期简称")
    private String cyclelAlias;

    /**
     * 周期类型名称:
     */
    @ApiModelProperty("周期类型名称")
    private String cycleTypeName;

    /**
     * 周期类型标识:
     */
    @ApiModelProperty("周期类型标识")
    private String cycleTypeCode;

    /**
     * 目标周期任务进展状态:
     */
    @ApiModelProperty("目标周期任务进展状态")
    private String taskStatus;

    /**
     * 冗余目标ID:
     */
    @ApiModelProperty("冗余目标ID")
    private String targetId;

    /**
     * 冗余评价模板ID:
     */
    @ApiModelProperty("冗余评价模板ID")
    private String evaluationTemplateId;
    /**
     * 冗余规划类型 GENERAL_PLANNING:常规规划 THEMATIC_PLANNING:专题规划
     */
    @ApiModelProperty("冗余规划类型")
    private String planningType;
    /**
     * 周期类型实例简称
     */
    @ApiModelProperty("周期类型实例简称")
    private String cycleNumberShortName;

    /**
     * 周期类型实例标识
     */
    @ApiModelProperty("周期类型实例标识")
    private String cycleTypeInstanceCode;

    /**
     * 关联目标内容类型编码 TARGET:目标 TARGET_CATEGORY:目标分类 OBJECTIVE:指标
     */
    @ApiModelProperty("关联目标内容类型编码")
    private String targetCycleContentTypeCode;

    /**
     * 冗余评价主题ID
     */
    @ApiModelProperty("冗余评价主题ID")
    private String evaluationSubjectId;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        MidPlanTargetCycleMenuDto that = (MidPlanTargetCycleMenuDto) o;
        return (
                evaObjTargetCycleId == that.evaObjTargetCycleId &&
                        evaObjEntityId == that.evaObjEntityId &&
                        evaObjTableTypeCode == that.evaObjTableTypeCode &&
                        evaObjTypeCode == that.evaObjTypeCode &&
                        treeTypeCode == that.treeTypeCode &&
                        evaluationObjectId == that.evaluationObjectId &&
                        targetCycleContentId == that.targetCycleContentId &&
                        cycleId == that.cycleId &&
                        isParentCycle == that.isParentCycle &&
                        isSubCycle == that.isSubCycle &&
                        isMetaphase == that.isMetaphase &&
                        cycleStandardName == that.cycleStandardName &&
                        cyclelAlias == that.cyclelAlias &&
                        cycleTypeName == that.cycleTypeName &&
                        cycleTypeCode == that.cycleTypeCode &&
                        taskStatus == that.taskStatus &&
                        targetId == that.targetId &&
                        evaluationTemplateId == that.evaluationTemplateId &&
                        planningType == that.planningType &&
                        cycleNumberShortName == that.cycleNumberShortName &&
                        cycleTypeInstanceCode == that.cycleTypeInstanceCode &&
                        targetCycleContentTypeCode == that.targetCycleContentTypeCode &&
                        evaluationSubjectId == that.evaluationSubjectId &&
                        subjectLifeCycle == that.subjectLifeCycle
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(
                super.hashCode(),
                evaObjTargetCycleId,
                evaObjEntityId,
                evaObjTableTypeCode,
                evaObjTypeCode,
                treeTypeCode,
                evaluationObjectId,
                targetCycleContentId,
                cycleId,
                isParentCycle,
                isSubCycle,
                isMetaphase,
                cycleStandardName,
                cyclelAlias,
                cycleTypeName,
                cycleTypeCode,
                taskStatus,
                targetId,
                evaluationTemplateId,
                planningType,
                cycleNumberShortName,
                cycleTypeInstanceCode,
                targetCycleContentTypeCode,
                evaluationSubjectId,
                subjectLifeCycle
        );
    }

}
